package me.jessyan.armscomponent.app.mvp.ui.adapter;

import android.support.annotation.NonNull;
import android.view.View;

import com.jess.arms.base.BaseHolder;
import com.jess.arms.base.DefaultAdapter;

import java.util.List;

import me.jessyan.armscomponent.app.R;
import me.jessyan.armscomponent.app.mvp.ui.holder.LeftListHolder;
import me.jessyan.armscomponent.app.mvp.ui.model.LeftListBean;

public class LeftListAdapter extends DefaultAdapter<LeftListBean> {
    private LeftListHolder.LeftListItemClickListener mListener;

    public LeftListAdapter(List<LeftListBean> infos,LeftListHolder.LeftListItemClickListener mListener) {
        super(infos);
        this.mListener = mListener;
    }

    @NonNull
    @Override
    public BaseHolder<LeftListBean> getHolder(@NonNull View view, int i) {
        return new LeftListHolder(view,mListener);
    }

    @Override
    public int getLayoutId(int i) {
        return R.layout.item_left_list;
    }
}
